package com.danciyixue.boot.dcyx.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 测试答案选项表单对象
 *
 * @author youlaitech
 * @since 2025-06-15 16:29
 */
@Getter
@Setter
@Schema(description = "测试答案选项表单对象")
public class TestAnswersForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "答案ID")
    private Long id;

    @Schema(description = "题目ID")
    @NotNull(message = "题目ID不能为空")
    private Long questionId;

    @Schema(description = "拼写")
    @NotBlank(message = "拼写不能为空")
    @Size(max=128, message="拼写长度不能超过128个字符")
    private String spelling;

    @Schema(description = "释义")
    @NotBlank(message = "释义不能为空")
    @Size(max=65535, message="释义长度不能超过65535个字符")
    private String meaning;

    @Schema(description = "是否正确答案")
    @NotNull(message = "是否正确答案不能为空")
    private Integer correct;

    @Schema(description = "正确单词ID")
    @NotNull(message = "正确单词ID不能为空")
    private Long correctWordId;

    @Schema(description = "真实单词ID")
    @NotNull(message = "真实单词ID不能为空")
    private Long realWordId;

    @Schema(description = "是否禁用")
    private Integer disabled;


}
